package com.itheima.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
//Rest模式
@RestController
@RequestMapping("/books")
public class BookController {

    @GetMapping
    public String getById(){
        log.error("error....");
        log.trace("trace...");
        log.info("info...");
        log.warn("warn...");
        log.error("error...");
        System.out.println("springboot is running...");
        return "springboot is running...";
    }


}
